<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="https://cos-1251140835.cos.ap-shanghai.myqcloud.com/cdn/fonts/iconfont.css">
    <script src="https://cos-1251140835.cos.ap-shanghai.myqcloud.com/cdn/web-component/vue.min.js"></script>
    <script src="https://cos-1251140835.cos.ap-shanghai.myqcloud.com/cdn/web-component/lz-ui-web-component-2020-06-29.js"></script>
    <title>Lz-ui</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        html,body{
            width: 100%;
            height: 100%;
        }
        /* .box{
            display: flex;
            justify-content: center;
            align-content: center;
            height: 100%;
        } */

    </style>
</head>
<body>
    <div id="app" class="box">
        <div style="text-align: center;display: block;margin: 60px auto;">
            <lz-wiget-ip></lz-wiget-ip>
        </div>
        <div>
            <lz-wiget-upload @list-update="listUpdate" style="width:800px;margin:0 auto"></lz-wiget-upload>
        </div>
    </div>
    <script>
        new Vue({
            el: '#app',
            data: function() {
                return { 
                    isSwitch: false,
                    switchText: 'switch'
                }
            },
            methods: {
                listUpdate(data) {
                    console.log(data)
                }
            }
        })
    </script>
</body>
</html>
